<%-- 
    Document   : genreView
    Created on : Feb 22, 2015, 12:58:07 PM
    Author     : Kim
--%>

<%@ include file="/common/header.jsp"%>

<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">List Genre</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
              
                <!-- /.panel-heading -->
                <div class="panel-body">
                    <input type="button" value="Data Baru" class="btn btn-primary" onclick="functionNewItem('<c:url value="/page/genrePrepareAdd.html" />');" />
                    <input type="button" value="Hapus Data" class="btn btn-default" onclick="functionDeleteItemList('<c:url value="/page/genreDelete.html" />');" />
                    <br>
                    <br>
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                            <thead>
                                <tr>
                                    <th><input type="checkbox" class="checkbox" onclick="functionClickAll();" id="checkMaster" /></th>
                                    <th>Kode Genre</th>
                                    <th>Nama Genre</th>
                                   
                                    <th width="5%">Edit</th>
                                </tr>
                            </thead>
                            <tbody>
                                <c:forEach items="${data.genreList}" var="genre" varStatus="idx">
                                    <tr>
                                        <td><input type="hidden" value="<c:out value="${genre.kodeGenre}" />" id="hiddenId[<c:out value='${idx.index}' />]" name="hiddenId" />
                                            <input type="checkbox" onclick="" id="check[<c:out value='${idx.index}' />]" name="check" />
                                        </td>   
                                        <td><c:out value="${genre.kodeGenre}" /></td>
                                        <td><c:out value="${genre.namaGenre}" /></td>
                                  
                                        <td>
                                            <a href="<c:url value="/page/genrePrepareUpdate.html?kodeGenre=${genre.kodeGenre}" />" style="border:0"><i class="fa fa-edit fa-fw"></i></a>
                                        </td>
                                    </tr>
                                </c:forEach>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.table-responsive -->
                </div>
                <!-- /.panel-body -->
            </div>
            <!-- /.panel -->
        </div>
        <!-- /.col-lg-12 -->
    </div>
</div>

<%@ include file="/common/footer.jsp"%>